<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
<link rel="stylesheet" type="text/css" href="layui/css/layui.css"> 
<link rel="stylesheet" type="text/css" href="css/reg.css">  
</head>
<body>

<div class="layui-container">
	<div class ="layui-row">
		<div class="layui-col-md4 layui-col-md-offset4">
			<form action="user/reg" method="post" class="layui-form">
				<h1>用户注册</h1>
				<h4>${error}</h4>
				<div class="layui-form-item">
					<label class="layui-form-label">账号</label>
					<div class="layui-input-inline">
						 <input type="text" name="username"  placeholder="请输入用户名" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">密码</label>
					<div class="layui-input-inline">
						 <input type="password"  placeholder="请输入密码"  name="password" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
				<label class="layui-form-label">确认密码</label>
				<div class="layui-input-inline">
					 <input type="password"  placeholder="请输入确认密码"  name="repassword" class="layui-input">
				</div>
				</div>
				<div class="layui-form-item">
						<label class="layui-form-label"> 真实姓名</label>
						<div class="layui-input-inline">
							 	<input type="text" name="relname"  class="layui-input">
						</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"> 电话</label>
					<div class="layui-input-inline">
							<input type="text" name="phone" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<input type="submit" value="注册" class="layui-btn layui-btn-primary layui-border-blue">
						<a href="user/login.jsp" class="layui-btn layui-btn-primary layui-border-blue">返回</a>
					</div>
				</div>
			</form>
		</div>
	</div>
</div> 
</body>
</html>